package com.software.messagecenter.feignclient;



import com.software.messagecenter.entity.Student;
import com.software.messagecenter.entity.Teacher;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "user-center")
public interface UserCenterFeignClient {
    @GetMapping("/student_info/findStudentInfoByUserId/{userId}")
    public Student findStudentInfoByUserId(@PathVariable String userId);

    @GetMapping("/teacher_info/findTeacherInfoByUserId/{userId}")
    public Teacher findTeacherInfoByUserId(@PathVariable String userId);

}
